Fix core context creation in GdkGLContext
authorNiels Nesse <nnesse@sonic.net>
Thu, 15 Jan 2015 01:30:28 +0000 (17:30 -0800)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 28 Jan 2015 12:00:30 +0000 (12:00 +0000)
commit27cf0fa34c3a51ddb50391f21aaf2e3984d6dddb
tree6eb96e9b72cfd5e659971c63c931eec217b92ba8
parent9e85fcbe7cc3cf296b125f149d20645c821d4b62
Fix core context creation in GdkGLContext

- Specifically request GL version when creating context. Just specifying core
profile bit results in the requested version defaulting to 1.0 which causes
the core profile bit to be ignored and an arbitrary compatability context to be
returned.

- Fix GL painting by removing GL calls that have been depricated by the 3.2 core
profile.

- Additionally remove glInvalidateFramebuffer() call, it is not supported by 3.2
core.

https://bugzilla.gnome.org/show_bug.cgi?id=742953
gdk/gdkgl.c
gdk/gdkglcontext.c
gdk/gdkwindow.c
gdk/x11/gdkglcontext-x11.c
gtk/gtkglarea.c